/**
 * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here.
	// For complete reference see:
	// http://docs.ckeditor.com/#!/api/CKEDITOR.config

	// The toolbar groups arrangement, optimized for two toolbar rows.
	config.toolbarGroups = [
		{ name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
		//黏贴
		//拼写检查
		/*{ name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },*/
		//超链接描点
		/*{ name: 'links' },*/
		//图片
		{ name: 'insert' },
		{ name: 'forms' },
/*		全屏{ name: 'tools' },*/
		/*源码{ name: 'document',	   groups: [ 'mode', 'document', 'doctools' ] },*/
		{ name: 'others' },
		'/',
		//字体
		{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
		//段落
		{ name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
		{ name: 'styles' },
		{ name: 'colors' },
		{ name: 'about' }
	];

	// Remove some buttons provided by the standard plugins, which are
	// not needed in the Standard(s) toolbar.
	config.removeButtons = 'Underline,Subscript,Superscript';

	// Set the most common block elements.
	config.format_tags = 'p;h1;h2;h3;pre';

	// Simplify the dialog windows.
	config.removeDialogTabs = 'image:advanced;link:advanced';

    // 在 CKEditor 中集成 CKFinder注意 ckfinder 的路径选择要正确。
    config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html',
    config.filebrowserImageBrowseUrl = '/ckfinder/ckfinder.html?type=Images',
    config.filebrowserFlashBrowseUrl = '/ckfinder/ckfinder.html?type=Flash',
    config.filebrowserUploadUrl = '/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Files',
    config.filebrowserImageUploadUrl = '/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Images',
    config.filebrowserFlashUploadUrl = '/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Flash',
    config.filebrowserWindowWidth = '750',
    config.filebrowserWindowHeight = '550'

/*    filebrowserBrowseUrl = '/ckfinder2.3.1/ckfinder.html';
    filebrowserImageBrowseUrl = '/ckfinder2.3.1/ckfinder.html?type=Images';
    filebrowserFlashBrowseUrl = '/ckfinder2.3.1/ckfinder.html?type=Flash';
    filebrowserUploadUrl = '/ckfinder2.3.1/core/connector/java/connector.java?command=QuickUpload&type=Files';
    filebrowserImageUploadUrl = '/ckfinder2.3.1/core/connector/java/connector.java?command=QuickUpload&type=Images';
    filebrowserFlashUploadUrl = '/ckfinder2.3.1/core/connector/java/connector.java?command=QuickUpload&type=Flash';*/


};
